package com.example.avmanagerweb.service.impl;

import com.example.avmanagerweb.entity.Staffdepartment;
import com.example.avmanagerweb.mapper.StaffdepartmentMapper;
import com.example.avmanagerweb.service.StaffdepartmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xg
 * @since 2023-06-26
 */
@Service
public class StaffdepartmentServiceImpl extends ServiceImpl<StaffdepartmentMapper, Staffdepartment> implements StaffdepartmentService {
    @Resource
    private StaffdepartmentMapper staffdepartmentMapper;
    @Override
    public List<Staffdepartment> getDepartmentList(int id) {
        System.out.println(id +" ");
        return staffdepartmentMapper.getDepartmentList(id);
    }
    @Override
    public List<Staffdepartment> getDepartment(int id) {
        return staffdepartmentMapper.getDepartment(id);
    }
}
